import routeSEM3000 from "@/router/routeSEM3000";
import routeSEM4000 from "@/router/routeSEM4000";

let authorityData = [
    {
        key: 'notice',
        name: 'notice',
        title: 'menu.SystemNotice',
        icon: 'home',
        path: '/notice',

        component: () => import("../views/Notice/Notice.vue"),
        isMenuItem: true,
    },
    {
        key: "NormalLots",
        name: "NormalLots",
        title: "menu.NormalLots",
        icon: "setting",
        path: '/normalLots',

        component: () => import("../views/NormalLots/NormalLots.vue"),
        isMenuItem: true,
    },
    {
        key: "RunLots",
        name: "RunLots",
        title: "menu.RunLots",
        icon: "setting",
        path: '/RunLots',

        component: () => import("../views/RunLot/RunLots.vue"),
        isMenuItem: true,
    },

    {
        key: "PackagingSummary",
        name: "PackagingSummary",
        title: "menu.PackagingSummary",
        icon: "setting",
        path: '/PackagingSummary',

        component: () => import("../views/SEM1000/PackagingSummary.vue"),
        isMenuItem: true,
    },
    {
        key: 'Reprint',
        name: 'Reprint',
        title: 'menu.reprint',
        icon: 'setting',
        path: '/Reprint',

        component: () => import("../views/Reprint/Reprint.vue"),
        isMenuItem: true,
    },
    {
        key: "CodeScanner",
        name: "CodeScanner",
        title: "menu.CodeScanner",
        icon: "setting",
        path: '/CodeScanner',

        component: () => import("../views/CodeScanner/CodeScanner.vue"),
        isMenuItem: true,
    },
    // {
    //     key: "SEM2000",
    //     name: "SEM2000",
    //     title: "menu.Report",
    //     icon: "read",
    //     path: '/SEM2000',
    //
    //     component: () => import("../views/SEM2000/LotQuery"),
    //     isMenuItem: true,
    // },
    {
        key: "SEM4000",
        name: "SEM4000",
        title: "menu.Report",
        icon: "read",

        children: routeSEM4000,
    },
    {
        key: "SEM3000",
        name: "SEM3000",
        title: 'menu.SystemSettings',
        icon: "setting",

        children: routeSEM3000,
    },
    {
        key: "External Systems",
        title: 'menu.system',
        name: "External Systems",
        icon: "global",
        children: [
            {
                path: "/system-ETL",
                name: "ETL System",
                isSystem: true,
                meta: {
                    title: 'menu.systemForETL',
                    url: process.env.VUE_APP_ETL_URL
                }
            }
        ]
    }
]

if (process.env.NODE_ENV === 'development') {
    authorityData = [
        ...authorityData,
    ]
}
// eslint-disable-next-line no-undef
export default [...authorityData];
